<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>   
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg"%>
<LINK href="images/css.css" type="text/css" rel="stylesheet">
<style type="text/css">
<!--
.STYLE1 {
	font-size: 12px
}
-->
</style>
<center>
  <table class="tableline" width="80%" border="0" cellspacing="1">
    <tr>
      <td width="26%" align="right" bgcolor="#ffffff">留言主题：</td>
      <td width="74%" bgcolor="#ffffff">${message.topic}</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#ffffff">姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 名：</td>
      <td bgcolor="#ffffff">${message.topic}</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#ffffff">联系电话：</td>
      <td bgcolor="#ffffff">${message.phone}</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#ffffff">电子邮件：</td>
      <td bgcolor="#ffffff">${message.email}</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#ffffff">留言内容：</td>
      <td bgcolor="#ffffff" height="100">${message.content}</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#ffffff">留言状态：</td>
      <td bgcolor="#ffffff">
<c:if test="${message.state == 0 }"><a href="messageAdmin.do?method=updateMessageState&id=${message.id}" ><img src="images/close.png" alt="更改状态" width="15" height="15" ></a></c:if>
<c:if test="${message.state == 1 }"><a href="messageAdmin.do?method=updateMessageState&id=${message.id}" ><img width="15" height="15" alt="更改状态" src="images/open.png" ></a></c:if>
</td>
    </tr>
    <tr>
      <td bgcolor="#ffffff" colspan="2" align="center"><a href="messageAdmin.do?method=delete&id=${message.id }">删除</a></td>
    </tr>
  </table>
</center>
